import { GameMapItemType } from './../GameDefine';
//背包
export type GameBag = {
    keys: number[];
}

export default class GameBagModel {
    private static _instance: GameBagModel = null;
    public static getInstance(): GameBagModel {
        if(this._instance == null){
            this._instance = new GameBagModel();
        }
        return this._instance;
    }

    private _data: GameBag = null;
    public get data(): GameBag {
        return this._data;
    }

    public init(): void{
        this._data = {
            keys: [],
        };
        this._data.keys[GameMapItemType.KEY_1] = 0;
        this._data.keys[GameMapItemType.KEY_2] = 0;
    }
}